package com.example.demo.mapper;

import com.example.demo.entity.Role;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author 54398
* @description 针对表【role】的数据库操作Mapper
* @createDate 2024-10-22 11:48:50
* @Entity com.example.demo.entity.Role
*/
public interface RoleMapper extends MPJBaseMapper<Role> {
    Role getRoleInfo(@Param("roleId") String roleId);

    @Select("select name, code from role where roleid = #{roleId} and isuse = 1")
    Role getRole1(@Param("roleId") String roleId);
}




